// ****************************************************************************
// *     Filename:  PrimaryGeneratorAction.hh
// *      Created:  2012-09-14 11:52:45
// *      Version:  1.0
// *     Revision:  0
// *       Author:  Tran Hoai Nam (nam), nam@kuno-g.phys.sci.osaka-u.ac.jp
// * Organization:  Osaka University
// *      License:  Geant4 Software License 
// *                http://geant4.cern.ch/license/LICENSE.html
// *  Description:  
// ****************************************************************************
#ifndef PRIMARYGENERATORACTION_NFT5PPPM
#define PRIMARYGENERATORACTION_NFT5PPPM

#include "globals.hh"
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ThreeVector.hh"

class G4ParticleGun;
class G4Event;
class G4ParticleTable;
class DetectorConstruction; //get parameters from Det. construction

class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
	public:
		PrimaryGeneratorAction ();
    PrimaryGeneratorAction(DetectorConstruction*);
		virtual ~PrimaryGeneratorAction ();
	private:
		G4ParticleGun *fpGun;
		G4ParticleTable *fpTable;
		DetectorConstruction *fpDet;
	public:
		void GeneratePrimaries(G4Event *anEvent);
		
}; // end of class declaration PrimaryGeneratorAction 



#endif /* end of include guard: PRIMARYGENERATORACTION_NFT5PPPM */
